package com.example.lemonservice.entitiy;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
@TableName("lemon_user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @Pattern(regexp = "^(?=.*[a-zA-Z]).*$")
    private String userName;
    private String userPassword;
    private String nickName;
}
